<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>归档</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.5.0/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>
<!--导航-->
<nav th:replace="_fragments :: menu(4)" class="ui inverted attached segment m-padded-tb-mini m-shadow">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">Blog</h2>
            <a th:href="@{index.html}" href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
            <a th:href="@{types.html}" href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>分类</a>
            <a th:href="@{tags.html}" href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
            <a th:href="@{archives.html}" href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
            <a th:href="@{aboutMe.html}"  href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>

            <div class="right m-item item m-mobile-hide">
                <div class="ui icon inverted transparent input">
                    <input type="text" placeholder="search......">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-top-right m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>
<!--中间内容-->
<div class="m-container m-padded-tb-big">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--左边的博客列表-->
            <div class="column">
                <!--header-->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">归档</h3>
                        </div>
                        <div class="right aligned column">
                            共<h2 th:text="${blogCount}" class="ui orange header m-inline-block m-text-thin">14</h2>篇
                        </div>
                    </div>
                </div>

                <th:block th:each="item : ${archiveMap}">
                    <h2 th:text="${item.key}" class="ui center aligned header">2017</h2>
                    <div  class="ui fluid vertical menu">
                        <a th:href="@{/blog/{id}(id=${blog.id})}" th:each="blog : ${item.value}" href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>&nbsp &nbsp &nbsp <span th:text="${blog.title}">关于深刻练习的清单</span>
                          <div th:text="${#dates.format(blog.updateTime,'MM-dd')}" class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div th:text="${blog.flag}" class="ui orange basic left pointing label">原创</div>
                        </a>
                        <!--/*-->
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <a href="#" target="_blank" class="item">
                        <span>
                          <i class="mini teal circle icon"></i>  关于深刻练习的清单
                          <div class="ui teal basic left pointing label">9月3日</div>
                        </span>
                            <div class="ui orange basic left pointing label">原创</div>
                        </a>
                        <!--*/-->

                    </div>

                </th:block>

            </div>

        </div>
    </div>
</div>
<!--底部-->
<footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="item">
                    <img src="../static/images/ewm.jpg" class="ui centered rounded image" alt="" style="width:170px">
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list">
                    <p>最新微博最新微博最新微博最新微博最新微博最新微博最新微博最新微博最新微博最新微博</p>
                </div>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin">jkdasjfkldajlkasjfkajd</p>
    </div>
</footer>

<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
<!--/*/</th:block>/*/-->
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>
</body>
</html>